<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>搜索框</p>
    <form>
        <input type="text" class="search-input" placeholder="请输入搜索内容">
    </form>
    <style>
     .search-input{
        padding: 10px;
        border: 2px solid black;
        border-radius: 4px;
        width: 150px;
        height: 30px;
        transition: width 0.5s ease;
    }
    .search-input:focus{ padding: 10px;
        border: 2px; solid: #ccc;
        border-radius: 4px;
        width: 500px;
        padding: 10px;
    }
    </style>
<style>
    ul.li{display: flex;
    }
ul li{
    display: inline;
    margin-bottom: 50px;
    line-height: 50px;
    width: 50px;
    height: 50px;
    text-align: center;
    border: 1px; solid wheat;
} 
li :hover{
    background-color: #4caf50;
    color: black;
}
.progress{
    width: 100%;
    background-color:#4caf50;
    height: 40px;
}
.progress-bar{
    width: 20%;
    height: 40px;
    background: red;
    color: white;
    text-align: center;
    line-height: 40px;
    animation: progress-bar-tow 2s linear;
}
@keyframes progress-bar{
    0%{
        width: 0%;
    }
    100%{
        width: 20%;
    }
}

.progress-tow{
    width: 100%;
    background-color: #4caf50;
    height: 40px;
}
.progress-bar-tow{
    width: 40%;
    height: 40px;
    background: red;
    color:white;
    text-align: center;
    line-height: 40px;
    animation: progress-bar-tow 2s linear;
}
@keyframes progress-bar-tow{
    0%{
        width: 0%;
    }
    100%{
        width: 40%;
    }
}
.progress-three{
    width: 100%;
    background-color: #4caf50;
    height: 40px;
}
.progress-bar-three{
    width: 60%;
    height: 40px;
    background: red;
    color:white;
    text-align: center;
    line-height: 40px;
    animation: progress-bar-tow 2s linear;
}
@keyframes progress-bar-three{
    0%{
        width: 0%;
    }
    100%{
        width: 60%;
    }
}
.progress-four{
    width: 100%;
    background-color: #4caf50;
    height: 40px;
}
.progress-bar-four{
    width: 80%;
    height: 40px;
    background: red;
    color:white;
    text-align: center;
    line-height: 40px;
    animation: progress-bar-tow 2s linear;
}
@keyframes progress-bar-four{
    0%{
        width: 0%;
    }
    100%{
        width: 80%;
    }
}


</style>
<ul>
    <li>《</li>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>》</li>
</ul>
<div class="progress">
    <p class="progress-bar">20%</p>
</div>
<div class="progress-tow">
    <p class="progress-bar-tow">40%</p>
</div>
<div class="progress-three">
    <p class="progress-bar-three">60%</p>
</div>
<div class="progress-four">
    <p class="progress-bar-four">80%</p>
</div>
</body>
</html>